/* 基础样式 */
body, html {
    height: 100%;
    overflow: hidden;
}

/* 滚动条美化 */
.overflow-auto::-webkit-scrollbar {
    width: 6px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.overflow-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 好友列表样式 */
.friend-item {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.friend-item:hover {
    background-color: #e9ecef;
}

.friend-item.active {
    background-color: #d1e7dd;
}

.friend-item.unread {
    font-weight: bold;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.friend-name {
    margin-bottom: 0;
    font-size: 15px;
}

.friend-message {
    margin-bottom: 0;
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 消息样式 */
.message {
    margin-bottom: 15px;
    display: flex;
}

.message-right {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-content {
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 18px;
    position: relative;
}

.message-left .message-content {
    background-color: #f1f0f0;
    color: #000;
}

.message-right .message-content {
    background-color: #0084ff;
    color: #fff;
}

.message-time {
    font-size: 11px;
    color: #6c757d;
    margin: 0 5px;
}

.message-status {
    font-size: 11px;
    color: #a0a0a0;
}

.message-status.read {
    color: #0084ff;
}

/* 表情选择器 */
.emoji {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
}

/* 图片消息 */
.message-image {
    max-width: 200px;
    border-radius: 8px;
    cursor: pointer;
}
    